package com.gjj.echarts.echartsgjj.controller;

import com.gjj.echarts.echartsgjj.service.OneYearService;
import com.gjj.echarts.echartsgjj.vo.OneYearVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 负责数据表格页面跳转到controller
 */
@Controller
public class DataTableController {
    @Autowired
    OneYearService oneYearService;

    @GetMapping("/money_table")
    public String month_table(Model model){
        OneYearVo oneYearVo = oneYearService.selectOneYear();
        model.addAttribute("year",oneYearVo);
        return "table/money_table";
    }

}
